package routers

import (
	"CMETO/controllers/noticeController"
	middleware "CMETO/middlewares"

	"github.com/gin-gonic/gin"
)

func NoticeApi(r *gin.RouterGroup) {
	var notice noticeController.NoticeController
	noticeRouter := r.Group("/notice", middleware.JWTAuthPlus())
	{
		noticeRouter.GET("/", notice.QueryNotices)
		noticeRouter.POST("/", notice.AddNotice)
		noticeRouter.PUT("/", notice.UpdateNotice)
		noticeRouter.DELETE("/", notice.DeleteNotice)
	}
}
